pop
Type
command
Summary
Retrieves a card from the list created with the push command, and either goes to that card or places its ID in a container.
Syntax
pop card [{into | before | after} <container>]
Description
Use the pop command to return to a card whose location you have previously stored.
If you do not specify a container, the pop command goes to the last card you placed on the list with the push command, and removes that card from the list.
If you specify a container, the long ID of the card is placed in the container and removed from the list. The current card doe not change.
If the list is empty when you use the pop command, LiveCode goes to the Home card. If you are running in the LiveCode development environment, this is the first card of the "license.rev" stack, which is the splash screen that appears when you start up LiveCode. (Click this card to close the stack.) If you are running in a standalone application, the Home card is the first card of the standalone's main stack.
Parameters
Name | Type | Description |
---|---|---|
container | A field, button, URL, or variable, or the message box. |
Examples
pop card -- go to the popped card
pop card after reverseListOfCards
Related
object: stack
property: ID
command: push
constant: return
glossary: development environment, current card, command, container, main stack, standalone application
keyword: card
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile